Skip to main content

Upper Triangular Solve

usolve(A: any[] | Mat, b: any[] | Mat) : any[]

param A - The 'A' part of Ax=b. A 2d matrix, specifically upper triangular. See lusolve or lsolve for variants.

param b - The 'b' part of Ax=b. A 1d matrix or array, column vector specifically.

returns: any[] - The column vector representing the solution to the equation Ax=b, or the part, 'x'.

This function finds the answer to the equation Ax=b, or the linear equation system where x is a column vector of the different variables.